﻿using ERP.ERPSystem.ProductionSystem.Dto;
using ERP.Team.ProductionSystem;
using ERP.Team.RBAC;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace ERP.ERPSystem.ProductionSystem
{
    /// <summary>
    /// 生产系统-生产管理-生产报工-xzc
    /// </summary>
    public interface IProduceWorkServices: IApplicationService
    {
        /// <summary>
        /// 查询生产报工
        /// </summary>
        /// <returns></returns>
        Task<List<ProductionReportingMain>> GetProductionReportingMain(GetProductionReportingMainDto getproductioreportingmaindto);
        /// <summary>
        /// 新增生产报工
        /// </summary>
        /// <param name="productionreportingmaindto"></param>
        /// <returns></returns>
        Task<int> AddProductionReportingMain(ProductionReportingMainDto productionreportingmaindto);
        /// <summary>
        /// 删除生产报工
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeleteProductionReportingMain(int id);
        /// <summary>
        /// 批量删除生产报工
        /// </summary>
        /// <param name="ids">要删除的ID数组</param>
        /// <returns>删除成功的数量</returns>
        Task<int> BatchDeleteProductionReportingMain(int[] ids);
        /// <summary>
        /// 通过主键id查询到相关的数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ProductionReportingMain> FindProductionWorkOrderMain(int id);
        /// <summary>
        /// 更新生产报工
        /// </summary>
        /// <param name="productionreportingmaindto"></param>
        /// <returns></returns>
        Task<int> UpdateProductionReportingMain(ProductionReportingMainDto productionreportingmaindto);
        /// <summary>
        /// 查询工单的信息
        /// </summary>
        /// <returns></returns>
        Task<List<ProductionWorkOrderMain>> GetProductionWorkOrderMain(GetProductionWorkOrderMainDto getproductionworkordermaindto);
        /// <summary>
        /// 查询生产任务的信息
        /// </summary>
        /// <returns></returns>
        Task<List<ProductionTask>> GetProductionTask(string? processBelongs, string? workstationCode, string? taskNumber);
        /// <summary>
        /// 查询部门数据
        /// </summary>
        /// <returns></returns>
        Task<List<DepartmentModel>> GetDepartment();
        /// <summary>
        /// 点击部门查询相对应的用户
        /// </summary>
        /// <param name="departmentid"></param>
        /// <returns></returns>
        Task<List<UserModel>> GetUser(int departmentid);
    }
}
